package com.zgjkhis.modules.system.service.impl;

import com.zgjkhis.common.service.impl.BaseServiceImpl;
import com.zgjkhis.modules.system.domain.DrugDeliveryDetail;
import com.zgjkhis.modules.system.domain.vo.DrugDeliveryDetailVO;
import com.zgjkhis.modules.system.service.DrugDeliveryDetailService;
import com.zgjkhis.modules.system.service.mapper.DrugDeliveryDetailMapper;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

// 默认不使用缓存
//import org.springframework.cache.annotation.CacheConfig;
//import org.springframework.cache.annotation.CacheEvict;
//import org.springframework.cache.annotation.Cacheable;

/**
 * @Author yzq
 * @Description 药品出库详情
 * @Date 2021/6/23 9:47
 * @Param
 * @return
 **/
@Service
//@CacheConfig(cacheNames = "user")
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true, rollbackFor = Exception.class)
public class DrugDeliveryDetailServiceImpl extends BaseServiceImpl<DrugDeliveryDetailMapper, DrugDeliveryDetail> implements DrugDeliveryDetailService {

    public DrugDeliveryDetailServiceImpl(DrugDeliveryDetailMapper drugDeliveryDetailMapper) {
        this.baseMapper = drugDeliveryDetailMapper;
    }

    @Override
    public List<DrugDeliveryDetailVO> queryList(String deliveryNo) {
        return baseMapper.queryList(deliveryNo);
    }
}
